![]() |
PBGetFPosSync |
||||
Header: | Files.h | Carbon status: | Supported | |
Determines the current position of the file mark before reading from or writing to an open file.
OSErr PBGetFPosSync ( ParmBlkPtr paramBlock );
A pointer to a basic File Manager parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, the file reference number for the file whose mark you wish to get.
On output, set to 0.
On output, set to 0
On output, set to 0
On output, the current position of the mark
The value returned in ioPosOffset is zero-based. Thus, a call to PBGetFPosSync returns 0 if you call it when the file mark is positioned at the beginning of the file.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)